package com.example.demo.repository;

import com.example.demo.model.Girl;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by Lx on 2018/6/26.
 */
public interface GirlRepository extends JpaRepository<Girl,Integer>{
    List<Girl> findByNameAndId(String name, Integer id);
    List<Girl> findByIdIn(List<Integer> id);
}
